<include path="header" />
    <div class="m-title">
        <ul>
          <li>资料修改</li>
          <li><a href="/setting/name">真实姓名</a></li>
          <li><a href="/setting/password">密码修改</a></li>
          <li><a href="/setting/avatar">头像上传</a></li>
          <li><a href="/setting/mail">邮箱设置</a></li>
          <li><a href="/setting/theme">主题设置</a></li>
          <li><a href="/setting/group" class="select">工作组</a></li>
          <li class="right"><a href="/setting/groupadd">+ 创建工作组</a></li>
          <li></li>
        </ul>
    </div>
    <? foreach($groups as $item){ ?>
    <div class="group-members">
    	<h6><?=$item['group_name']?>&nbsp;&nbsp;<? if($item['user_id']==$user['user_id']){ ?><a href="/setting/groupedit?id=<?=$item['group_id']?>">编辑</a><? }?></h6>
        <ul	class="group-members">
            <? if(is_array($item['members'])){ foreach($item['members'] as $i){ ?>
            <li><?=$i['username']?><? if($i['user_id'] == $item['user_id']){?>&nbsp;&nbsp;(组长)<? }?> </li>
            <? } }?>
        </ul>
     </div>
     <? }?>
<include path="footer" />
  
